﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_AddProduct : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["id"] != null && Request["id"].ToString() != "-1")
        {
            Maticsoft.Products pp = new Maticsoft.Products();
            pp.GetModel(Convert.ToInt32(Request["id"]));
            content.Value = pp.PMEMO;
            pname.Value = pp.PNAME;
            ptype.Value = pp.PTYPE.ToString();
            pprice.Value = pp.PPRICE.ToString();
            pstatus.Value = pp.PSTATUS.ToString();
            pId.Value = pp.ID.ToString();
        }
        else
        {
            pId.Value = "";
        }
    }
}